package com.xidian.zhiancloud.dao.riskcontrol.riskevaluate;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskEvaMethSetFreList;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 风险管控-系统设置-风险评价方法设置-三字段
 */
public interface TRiskEvaMethSetFreMapper extends BaseMapper<TRiskEvaMethSetFreList> {

    List<Map<String,String>> getTRiskEvaMethSetFreList(
            @Param("companyid") Long companyid,
            @Param("evaMethodSetId") String evaMethodSetId,
            @Param("criteria") String criteria);

    List<Map<String, Object>> getByEvaMethodSetIdTwoList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    int addTRiskEvaMethSetFre(@Param("data") TRiskEvaMethSetFreList data);

    int updateTRiskEvaMethSetFre(@Param("id") String id,
        @Param("data") TRiskEvaMethSetFreList data);

    int deleteTRiskEvaMethSetFre(List<String> list);


}
